package itsm.isperp.module.entity.app;

import itsm.isperp.framework.quartz.domain.JobHistory;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 
 * @author lizx
 * @date 2013-4-8
 */
@Entity
@Table(name = "app_job_history")
public class AppJobHistory implements JobHistory {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;

	@Column
	protected Date startDate;

	@Column
	protected Date endDate;

	@Column
	protected String endStatus;

	@Column
	protected String message;

	@Column
	protected boolean areSuccessful;

	@Column
	protected String appJobId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getEndStatus() {
		return endStatus;
	}

	public void setEndStatus(String endStatus) {
		this.endStatus = endStatus;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getAppJobId() {
		return appJobId;
	}

	public void setAppJobId(String appJobId) {
		this.appJobId = appJobId;
	}

	@Override
	public String getJobId() {
		return this.appJobId;
	}

	@Override
	public void setJobId(String jobId) {
		this.appJobId = jobId;
	}

	public boolean isAreSuccessful() {
		return areSuccessful;
	}

	public void setAreSuccessful(boolean areSuccessful) {
		this.areSuccessful = areSuccessful;
	}

}
